package com.dys.service.impl;

import com.dys.dao.CustomerMapper;
import com.dys.service.CustomerService;
import com.dys.util.Customer;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service("customerService")
public class CustomerServiceImpl implements CustomerService {

    @Autowired
    CustomerMapper customerMapper;
    @Override
    public boolean customerReg(Customer customer) {
        boolean flag = customerMapper.customerReg(customer);
        return flag;
    }

    @Override
    public String checkName(String name) {
        return customerMapper.checkName(name);
    }

}
